package javase0822;

public class Demo01 {
    int n;
    public static void main(String[] args) {
        // 八种基本数据类型：
        int n = 0;
        Integer integer = 0;
        long l = 0L;
        Long lo = 0l;
        short s = 0;

        byte b = 0;

        boolean bool = false;

        char c = '1';

        double d = 0.0;

        float f = 1f;

        //包装类 引用类型
        int n1 = 1;
        int n2 = 1;

        String s1 = new String("1");
        String s2 = new String("1");

        System.out.println(n1 == n2);
        System.out.println(s1 == s2);
        System.out.println(s1.equals(s2));

        System.out.println("----");
        Integer int1 = 1111;
        Integer int2 = 1111;
        System.out.println(int1 == int2);
        System.out.println(int1.equals(int2));


        System.out.println("-------------");
        //   &&  ||
        String ss = null;
        //System.out.println(ss.equals("1"));
        System.out.println( (1 == 2) && ss.equals("1"));
        System.out.println(ss == null ? false : ss.equals("1"));
        System.out.println(ss != null && ss.equals("1"));

        if("1".equals(ss)) {

        }

        //值传递 引用传递





        //数组

    }
}
